cmake_minimum_required(VERSION 3.8)

project(virtual_adr_source)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})

set(PROJECT_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/..)

add_executable(virtual_adr_source ${CMAKE_CURRENT_SOURCE_DIR}/virtual_viu.cpp ${ALL_COMPILE_SRC})

target_link_libraries(virtual_adr_source ddsc jsoncpp curl ssl crypto protobuf asf_logsdk mosquitto)

install(TARGETS ${PROJECT_NAME} DESTINATION bin)
#install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION opt/${PROJECT_NAME}/bin)